1d heat equation separation of variables